/*
 * Copyright (c) Ulrich Hilger, http://dev.uhilger.de, all rights reserved.
 *
 * Published under the terms and conditions of the Apache License 2.0,
 * see http://www.apache.org/licenses/LICENSE-2.0
 */

package de.uhilger.servicehub.server;

import de.uhilger.servicehub.model.User;

/**
 * A user of application ServiceHub
 *
 * @author Ulrich Hilger, <a href="http://dev.uhilger.de" target="_blank">http://dev.uhilger.de</a>
 * @author Published under the terms and conditions of
 * the <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License 2.0</a>
 */
public class ServiceHubUser implements User {

  private Object userId;
  private String userName;
  private String userPassword;

  /**
   * Create a new object of class ServiceHubUser
   */
  public ServiceHubUser() {
    super();
  }

  /**
   * Get the name of this user
   * @return  the user name
   */
  public String getUserName() {
    return userName;
  }

  /**
   * Set the name of this user
   * @param userName  the name to give this user
   */
  public void setUserName(String userName) {
    this.userName = userName;
  }

  /**
   * Get the password of this user
   * @return  the user password
   */
  public String getUserPassword() {
    return userPassword;
  }

  /**
   * Set the password of this user
   * @param userPassword  the password to set for this user
   */
  public void setUserPassword(String userPassword) {
    this.userPassword = userPassword;
  }

  /**
   * Get a string representation of this object
   * @return  this object as string
   */
  @Override
  public String toString() {
    return userName;
  }

  public void setUserId(Object id) {
    this.userId = id;
  }

  public Object getUserId() {
    return userId;
  }


}
